﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace E2_WEBSITE.Code.Product
{
    public class NhaSanXuat
    {
        public int ID { get; set; }
        public string TenNSX { get; set; }
        public string QuocGia { get; set; }
    }

    public class NhaPhanPhoi
    {
        public int ID { get; set; }
        public string TenNhanPhanPhoi { get; set; }
    }

    public class KhuyenMai
    {
        public int ID { get; set; }
        public string HinhThuc { get; set; }
        public int PhanTramGiam { get; set; }
    }

    public class LoaiSanPham
    {
        public int ID { get; set; }
        public string TenLoaiSanPham { get; set; }
    }

    public class HinhAnh
    {
        public int ID { get; set; }
        public string URL { get; set; }
        public string MauSac { get; set; }
        public int IDSanPham { get; set; }
        public int SoLuongTon { get; set; }
    }

    public class ProductInfo
    {
        public int ID { get; set; }
        public string TenSanPham { get; set; }
        public NhaSanXuat NSX { get; set; }
        public string MoTa { get; set; }
        public int Gia { get; set; }
        public KhuyenMai Khuyen_Mai { get; set; }
        public NhaPhanPhoi Nha_Phan_Phoi { get; set; }
        public int Diem { get; set; }
        public int SoLuongTon { get; set; }
        public DateTime NgayThemSP { get; set; }
        public string BaoHanh { get; set; }
        public int LoaiLinhKien { get; set; }
        public LoaiSanPham Loai_San_Pham { get; set; }
        public int LaLinhKien { get; set; }
        public HinhAnh Hinh_Anh { get; set; }
        public string UrlChiTiet { get; set; }
    }

    public class CPU : ProductInfo
    {
        public int ID { get; set; }
        public string Socket { get; set; }
        public string Bus { get; set; }
        public string Cache { get; set; }
        public string Speed { get; set; }
    }

    public class Case : ProductInfo
    {
        public int ID { get; set; }
        public string KichThuoc { get; set; }
        public string VatLieu { get; set; }
        public string HoTro { get; set; }
        public string Nguon { get; set; }
        public string CongGiaoTiep { get; set; }
        public string KhongGianChua { get; set; }
        public string MoRong { get; set; }
        public string TanNhiet { get; set; }
    }

    public class CD_DVD : ProductInfo
    {
        public int ID { get; set; }
        public string TocDo { get; set; }
        public string CongGiaoTiep { get; set; }
    }

    public class HDD : ProductInfo
    {
        public int ID { get; set; }
        public string DungLuong { get; set; }
        public string Chuan { get; set; }
        public string SoVong { get; set; }
    }

    public class OS : ProductInfo
    {
        public int ID { get; set; }
        public string Ten { get; set; }
    }

    public class Keyboard : ProductInfo
    {
        public int ID { get; set; }
        public string CongGiaoTiep { get; set; }
        public string Mau { get; set; }
    }

    public class Mainboard : ProductInfo
    {
        public int ID { get; set; }
        public string Cpu { get; set; }
        public string Ram { get; set; }
        public string Chipset { get; set; }
        public string Audio { get; set; }
        public string Video { get; set; }
        public string Form_factor { get; set; }
        public string Io_control { get; set; }
        public string Network { get; set; }
        public string Interface { get; set; }
        public string Expansion { get; set; }
    }

    public class Monitor : ProductInfo
    {
        public int ID { get; set; }
        public string DoPhanGiai { get; set; }
        public string DoTuongPhan { get; set; }
        public string ThoiGianDapUng { get; set; }
        public string CongGiaoTiep { get; set; }
    }

    public class Mouse : ProductInfo
    {
        public int ID { get; set; }
        public string CongGiaoTiep { get; set; }
        public string Mau { get; set; }
    }

    public class Pin : ProductInfo
    {
        public int ID { get; set; }
        public string Cell { get; set; }
        public string CongNghe { get; set; }
    }

    public class Power : ProductInfo
    {
        public int ID { get; set; }
        public string CongSuat { get; set; }
        public string Quat { get; set; }
        public string Connector { get; set; }
    }

    public class Ram : ProductInfo
    {
        public int ID { get; set; }
        public string Bus { get; set; }
        public string DungLuong { get; set; }
    }

    public class SoundCard : ProductInfo
    {
        public int ID { get; set; }
        public string CongSuat { get; set; }
        public string Ex { get; set; }
    }

    public class Speaker : ProductInfo
    {
        public int ID { get; set; }
        public string CongSuat { get; set; }
        public string Chuan { get; set; }
    }

    public class VGA : ProductInfo
    {
        public int ID { get; set; }
        public string Engine { get; set; }
        public string VideoMemory { get; set; }
        public string InterfaceMemory { get; set; }
        public string CongGiaoTiep { get; set; }
    }

    public class Desktop : ProductInfo
    {
        public int Id { get; set; }
        public CPU IdCpu { get; set; }
        public Ram IdRam { get; set; }
        public HDD IdHdd { get; set; }
        public CD_DVD IdCDDVD { get; set; }
        public VGA IdVga { get; set; }
        public Case IdCase { get; set; }
        public Keyboard IdKeyboard { get; set; }
        public Mouse IdMouse { get; set; }
        public Speaker IdSpeaker { get; set; }
        public bool LaSanPhamCustom { get; set; }
        public string idHdh { get; set; }
    }

    public class Laptop : ProductInfo
    {
        public int ID { get; set; }
        public CPU IdCpu { get; set; }
        public SoundCard IdSoundCard { get; set; }
        public string ScreenSize { get; set; }
        public Ram IdRam { get; set; }
        public HDD IdHdd { get; set; }
        public Pin IdPin { get; set; }
        public string KhoiLuong { get; set; }
        public VGA IdVga { get; set; }
        public Mainboard IdMainboard { get; set; }
        public bool LaSanPhamCustom { get; set; }
    }
}